<?php

namespace app\common\model;

use think\model\relation\BelongsTo;

class SalesmanDealer extends BaseModel
{
    protected $deleteTime = false;

    public function dealer(): BelongsTo
    {
        return $this->belongsTo(Dealer::class, 'dealer_id','id');
    }

    public function salesman(): BelongsTo
    {
        return $this->belongsTo(Salesman::class, 'salesman_id','id');
    }
}